StringScanner.SkipToCharacter Function
Syntax
Result_Flag as L = SkipToCharacter as l(characters as c)
Arguments
- Result_Flag
True if an alphanumeric character was found.
- characters
Characters to search for. Case sensitive.
Description
Skip until one of the characters specified is encountered. Return true if successful.
Discussion
The <StringScanner>.SkipToCharacter() function moves the offset to the next character in the Chars list. The offset does not move if it is already pointing to one of the specified characters. Note : The Chars argument is case sensitive.
Example
dim scanner as P dim txt as C txt = <<%text% This is wonderful prose written by a technical writer of note. %text% scanner = stringscanner.create(txt) ? scanner.skiptocharacter("wr") = .T. ? scanner.GetToOffset() = "This is " ? scanner.GetRemainder() = wonderful prose written by a technical writer of note.
See Also